
const state = {
  type: "0",
}

const mutations = {
  //保存数据
  CHANGE_TYPE(state, type) {
    state.type = type
  },

}

const actions = {
  //保存数据
  changeSetting({ commit }, data) {

    commit(' CHANGE_TYPE', { type: data })
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
